package com.bw.kf.all2211a

import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.lifecycle.lifecycleScope
import com.alibaba.android.arouter.launcher.ARouter
import com.bw.kf.all2211a.databinding.ActivityWebBinding
import com.bw.kf.all2211a.databinding.ActivityWelcomeBinding
import com.bw.kf.mvvm.base.BaseViewActivity
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch

class WelcomeActivity : BaseViewActivity<ActivityWelcomeBinding>() {
    override fun iniView() {
     lifecycleScope.launch {
         for (i in 5 downTo 0){
             binding.text.setText("${i}")
             delay(1000)
         }
         ARouter.getInstance().build("/app/fg/HomeActivity").navigation()
     }
    }

    override fun iniData() {

    }

    override fun Layoutid()=R.layout.activity_welcome
}